Method: Megam::LicenseCollection#<<
- Defined in:
- lib/megam/core/license_collection.rb
#<<(*args) ⇒ Object Also known as: push
27 28 29 30 31 32 33 34 |
# File 'lib/megam/core/license_collection.rb', line 27 def <<(*args) args.flatten.each do |a| is_megam_license(a) @license << a @license_by_name[a.name] =@license.length - 1 end self end |